package com.maple.soa.log;

import org.springframework.aop.AfterReturningAdvice;

import java.lang.reflect.Method;

/**
 * @author lijian
 * @date 2020/7/6
 */
public class AfterLog implements AfterReturningAdvice {
    @Override
    public void afterReturning(Object result, Method method, Object[] args, Object target) throws Throwable {
        System.out.println("==========after==========");
        System.out.println(method.getClass().getName() + " " + method.getName() + "is running.");
        System.out.println(target.getClass().getName() + " " + target.toString() + "is running.");
        System.out.println("接口返回：" + result);
    }
}
